package com.kongwg.java1;

import org.junit.Test;

/**
 * @author kongwg
 * @create 2020-12-25 16:14
 */
public class LambdaTest {
    @Test
    public void test1(){
        Runnable run = () -> {
            System.out.println("你好啊，我是runnable");
        };
        run.run();

    }

    @Test
    public void test2(){
        MyInterface my = () -> System.out.println("myinterface");
        my.method1();
    }
}
